package org.evan.spring6.iocxml.ditest;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Employee {
    //对象类型属性：员工属于某个部门
    private Department department;
    private String ename;
    private Integer age;
    //爱好
    private String[] hobby;

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void work(){
        System.out.println(ename + " employee work......" + age);
        department.info();
        System.out.println(Arrays.toString(hobby));
    }
}
